<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <h2>绝对路径</h2>
  <a href="/home">测试</a>
  <script src="/js/app.js"></script>

  <h2>相对路径</h2>
  <a href="./user">个人中心</a>
  <a href="../cart">购物车</a>

</body>
</html>